package cn.siriusbot.siriuspro.config;

import cn.siriusbot.siriuspro.uitls.ApplicationUtils;
import org.fusesource.jansi.AnsiConsole;

import java.io.IOException;

public class Sirius {

    /**
     * 启动时
     */
    public static void Start(){

    }

    /**
     * 初始化函数
     */
    public static void SiriusInit(){
        AnsiConsole.systemInstall();
        ApplicationUtils.initAppPath();
        if(!SiriusUtils.authAgreement()){
            SiriusUtils.printAgreement();
            try {
                System.in.read();
            } catch (IOException e) {
                e.printStackTrace();
            }
            System.exit(0);
        }
        // 数据库引导
        //ApplicationUtils.databaseInit();
    }
}
